{include file='../header.tpl'}

<div class="container">
    <h1 class="left-padding">Welkom bij Nieuwsbuis! de HEADLINES:</h1>
    <div class="left-padding newsicon">
        <div id="slideshow">
            {foreach from=$topThree item=post}
                <a {if $post@index == 0}class="active"{/if} href="/post/read/{$post->getId()}">
                    <p class="bigfont">{substr(strip_tags($post->getTitle()), 0, 90)}</p>
                </a>
            {/foreach}
        </div>
    </div>

    <h1 class="left-padding">Meer nieuws:</h1>
    <div class="left-padding row">
    {foreach $featuredPosts as $post}
        <span class="span4 postblocks">
            <a href="/post/read/{$post->getId()}">
            <h2>{strip_tags($post->getTitle())}</h2>
            <p>{substr(strip_tags($post->getContent()), 0,300)}</p>
            </a>
        </span>
        {if $post@iteration % 3 == 0 }<div class="clearme"></div>{/if}
    {/foreach}


    </div>


{include file='../footer.tpl'}